package com.itheima.marking_system.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "考试实体类")
@TableName("exam")
public class ExamEntity {
    @ApiModelProperty(value = "考试ID", required = true)
    private Long id;
    @ApiModelProperty(value = "考试名称", required = true)
    private String name;
    @ApiModelProperty(value = "班级ID", required = true)
    private Long classId;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间", required = true)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者", required = true)
    private Long createUser;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "是否删除", required = true)
    private Integer isDeleted;
}
